<?php
/*
 * To change this templates, choose Tools | templatess
 * and open the templates in the editor.
 */
$defaultpath = "./../Desktop/Tubes5Progin/Upload";
include 'process/connect.php';
include 'class/user.php';
include 'process/isloggedon.php';
if ($isLoggedOn)
    header("location: userfile.php?username=" . $loggedOnUser->getUserName() . "&path=" . $defaultpath."/".$loggedOnUser->getUserName());

include 'process/loginhandler.php';
?>

<link rel="stylesheet" href="styles/header.css" />
<link rel="stylesheet" href="styles/inside.css" />
<link rel="stylesheet" href="styles/navigate.css" />
<link rel="stylesheet" href="styles/form.css" />
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>dropbin</title>
    </head>
    <?php
    include 'templates/header.php';
    ?>
    <body>
        <!--
        -->
        <div class="paddingTop" style="display: block">
        </div>

        <div class="middle">
            <div class="paddingContentI">
                &nbsp;
            </div>
            <div class="panelL">
                <label class="headinfo">Log in

                </label>
                <hr>
                <form class="log" id="login" method="post" action="index.php">
                    <div>
                        <label>Username

                        </label>
                        <input type="text" name="username" id="usernameL" class="logField"/>
                    </div>
                    <div>
                        <label>Password

                        </label>
                        <input  name="password" id="passL" type="password" class="logField"/>
                    </div>

                    <div>
                        <span id="regCheck" ></span>
                        <input class="subButtonL" id="submitbutton" type="submit" name="login" value="Login"/>
                    </div>
                </form>
                <div class="info">
                    <a href="register.php">Join</a> Our Community.
                </div>

            </div>
        </div>

    </body>
</html>